package com.littleken.service;

import com.littleken.dao.UserDao;
import com.littleken.dao.impl.UserUserDaoImpl;
import com.littleken.entity.User;
import com.littleken.service.impl.UserService;

public class UserServiceImpl implements UserService {
    UserDao dao = new UserUserDaoImpl();
    @Override
    public User getUserById(int id) {
        User user = dao.getUserById(id);
        return user;
    }

    @Override
    public User getUserByUsername(String name) {
        User user = dao.getUserByUsername(name);
        return user;
    }
}
